@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content" style="padding: 0;">
        <div style="display: none">
            <input type="hidden" id="oneChannelValue" value="">
            <input type="hidden" id="twoChannelValue" value="">
            <input type="hidden" id="thrChannelValue" value="">
            <input type="hidden" id="customerStatus" value="">
            <input type="hidden" id="xcustomerStatus" value="">
            <input type="hidden" id="reach" value="">
            <input type="hidden" id="auditswitch" value="${auditswitch}">
            <input type="hidden" id="sttleAccountsTime" value="${sttleAccountsTime}">
            <input type="hidden" id="isDorj" value="jz">
            <input type="hidden" id="menuName" value="结账退款-结账退款">
        </div>
        <div class="numStatistics">
            <div><div onclick="Recharge.totalNumber('')"><span>总人数</span>（<span id="total">0</span>）</div></div>
            <div onclick="Recharge.totalNumber('新客首次')"><span>新客首次</span>（<span id="first">0</span>）</div>
            <div onclick="Recharge.totalNumber('新客多次')"><span>新客多次</span>（<span id="two">0</span>）</div>
            <div onclick="Recharge.totalNumber('复诊')"><span>复诊</span>（<span id="further">0</span>）</div>
            <div onclick="Recharge.totalNumber('老客')"><span>老客</span>（<span id="old">0</span>）</div>
            <div id="zoom">
                <img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/open.png" alt="">
                <img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/shrink.png" alt="" style="display: none">
                <span>条件展开</span>
            </div>
        </div>
        <div class="divFlex" style="display: none">
            <div class="flex_one">
                <div>一级渠道</div>
                <div>二级渠道</div>
                <div>三级渠道</div>
                <div>开单状态</div>
            </div>
            <div class="flex_two">
                <div>
                    <select id="oneChannel" name="oneChannel" onchange="Recharge.inquire()"></select>
                </div>
                <div>
                    <select id="twoChannel" name="twoChannel" onchange="Recharge.inquire()"></select>
                </div>
                <div>
                    <select id="thrChannel" name="thrChannel" onchange="Recharge.inquire()"></select>
                </div>
                <div>
                    <select id="dealStatus" name="dealStatus" onchange="Recharge.inquire()">
                        <option value="">请选择</option>
                        <option value="已开单">已开单</option>
                        <option value="已结账">已结账</option>
                        <option value="待审核">待审核</option>
                    </select>
                </div>
            </div>
        </div>
        <div class="timeButton">
            <div class="timeBox" >
                <div>
                    <span>结账时间</span>
                    <input type="text" autocomplete="off" id="startTime" onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss',choose:checkDate})">
                    <span>-</span>
                    <input type="text" autocomplete="off" id="endTime" onclick="laydate({istiem:true,format:'YYYY-MM-DD hh:mm:ss',choose:checkDate})">
                </div>
                <div>
                    <button type="button" class="btn" onclick="Recharge.naturalDaySearch(1)">自然时间</button>
                    <button type="button" class="btn" onclick="Recharge.naturalDaySearch(2)">扎帐时间</button>
                </div>
            </div>
            <div class="buttonBox" >
                <div>
                    @if(shiro.hasPermission("/recharge/rechargeButton")){
                    <button type="button" class="btn" onclick="Recharge.recharge()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/settleAccounts.png"><span>结账</span></button>
                    <button type="button" class="btn" onclick="Recharge.print()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/export.png"><span>打印</span></button>
                    <button type="button" class="btn" onclick="Recharge.resetSearch()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/empty.png"><span>重置</span></button>
                    <button type="button" class="btn" onclick="Recharge.search()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/refresh.png"><span>刷新</span></button>
                    <button type="button" class="btn" id="moreBtn"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/More.png"><span>更多</span></button>
                    <div class="borderNone" style="display: none;margin-top: 5px;">
                        <button type="button" class="btn" onclick="Recharge.updateRechargeRemarks()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/screen.png"><span>修改备注</span></button>
                        @if(shiro.hasPermission("/recharge/updateRechargeTime")){
                        <button type="button" class="btn" onclick="Recharge.updateTime()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/screen.png"><span>修改时间</span></button>
                        @}
                        @if(shiro.hasPermission("/recharge/updateTC")){
                        <button type="button" class="btn" onclick="Recharge.updateTC()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/screen.png"><span>修改TC</span></button>
                        @}
                        <button type="button" class="btn" onclick="Recharge.updateDocumentNumber()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/export.png"><span>修改单号</span></button>
                        <button type="button" class="btn" onclick="Recharge.delete()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/Trash.png"><span>删除</span></button>
                        <button type="button" class="btn" onclick="screenTable()"><img src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/screen.png"><span>显示列</span></button>
                    </div>
                    @}
                </div>
            </div>
        </div>
        <div class="tableBox"><#table id="RechargeTable"/></div>
    </div>
</div>
<script src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/initChannelsss.js?v=20200718"></script>
<script src="https://pynnn.oss-cn-hangzhou.aliyuncs.com/jsChannel.js?v=20200718"></script>
<script src="${ctxPath}/static/modular/balance/recharge.js?v=20200718"></script>
<script src="${ctxPath}/static/modular/tcCenter/consultant/doctorTcSearchContents.js?v=20200718"></script>
@}